package com.itheima.itheima_health.mapper;

import com.github.pagehelper.Page;
import com.itheima.itheima_health.entity.PageResult;
import com.itheima.itheima_health.entity.QueryPageBean;
import com.itheima.itheima_health.pojo.CheckItem;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Mapper
public interface BookingMapper {
    void CheckitemTermAdd(CheckItem checkItem);

    Page<CheckItem> CheckitemTerPageQuery(QueryPageBean queryPageBean);

    @Delete("delete from t_checkitem where id = #{id}")
    void CheckitemTermDelete(Long id);

    CheckItem CheckitemTergetByid(Long id);

    void CheckitemTergetUpdate(CheckItem checkItem);

    Integer findCountByCheckitem(Long id);

    @Select("select * from t_checkitem")
    List<CheckItem> getallCheckitem();
}
